from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^list/(?P<category_id>\d+)/(?P<page_num>\d+)/$', views.ListView.as_view()),  # 商品列表页
    url('^hot/(?P<category_id>\d+)/$', views.HotView.as_view()),  # 热销排行
    url('^detail/(?P<sku_id>\d+)/$', views.DetailView.as_view()),  # 详情页
    url('^detail/visit/(?P<category_id>\d+)/$', views.DetailCountView.as_view()),  # 详情页次数统计
    url('^browse_histories/$', views.HistoryView.as_view()), # 浏览记录
]
